#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char ** argv)
{
    printf("Currend process UID: %d\n",getuid());
    printf("Currend process EUID: %d\n",geteuid());

    printf("Currend process GID: %d\n",getgid());
    printf("Currend process EGID: %d\n",getegid());

    printf("Currend process PID: %d\n",getpid());
    printf("Currend process PPID: %d\n",getppid());
}
